package com.nopay.dxdwphone.dialog;

import android.app.Activity;
import android.app.Dialog;
import android.os.Bundle;
import androidx.annotation.NonNull;

import com.blankj.utilcode.util.SPUtils;

import com.nopay.dxdwphone.Constants;
import com.nopay.dxdwphone.R;

public class DialogWarmPrompt extends Dialog {

    public DialogWarmPrompt(@NonNull Activity context) {
        super(context, R.style.MyDialog);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dialog_warm_prompt);

        setCancelable(false);
        findViewById(R.id.tv_dialog_confirm).setOnClickListener(v -> {
            SPUtils.getInstance().put(Constants.SP_USER_FROM_LOGIN, false);
            dismiss();
        });
    }
}
